import API from './api';
import http from '../plugin/http';
import type { IRobotconversationItemDataModal, IAddRobotconversationItemDataModal } from '../type';

const addRobotconversationItem = async (params: IAddRobotconversationItemDataModal) => {
    return await http.post(API.ROBOTCONVERSATIONITEM_ADD, params)
};

const getRobotconversationItemList = async (params: {
    conversationId: string
}): Promise<IRobotconversationItemDataModal[]> => {
    return await http.get(API.ROBOTCONVERSATIONITEM_GETLIST, { params })
};

export default {
    addRobotconversationItem,
    getRobotconversationItemList,
}